package cn.wolfcode.wolf2w.query;

import cn.wolfcode.wolf2w.condition.TravelCondition;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TravelQuery extends QueryObject {
    public static final int STATE_WAITING = 1;
    public static final int STATE_RELEASE = 2; // 审核通过
    public static final int STATE_REJECT = -1;

    private int state;  // 状态：1（待审核）、-1（已拒绝）
    private String destId;  // 目的地

    private int perExpendType = -1;  // 人均消费
    private int dayType = -1;  // 出行天数

    public static final int ORDER_NEW = 1;
    public static final int ORDER_HOT = 2;
    private int orderType = -1;  // 排序：1（最新）、2（最热）

    public TravelCondition getPerExpend(){
        return TravelCondition.Expend_MAP.get(perExpendType);    // 获取人均花费的范围值
    }
    public TravelCondition getDay(){
        return TravelCondition.DAY_MAP.get(dayType);    // 获取出行天数的范围值
    }

    private String stateReleaseAndPublic = "NO";  // 公开且审核通过
}
